package com.grace.cms.common.domain.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class CmsUpdate implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long updateId;

    private String updateType;

    private String updateFrom;

    private String updateSign;

    private Boolean batch;

    public CmsUpdate(){}

    public CmsUpdate(String updateType, String updateFrom, String updateSign, String createBy) {
        this.updateType = updateType;
        this.updateFrom = updateFrom;
        this.updateSign = updateSign;
        this.createBy = createBy;
    }

    public CmsUpdate(String updateType, String updateFrom, String updateSign, String createBy,Boolean batch) {
        this.updateType = updateType;
        this.updateFrom = updateFrom;
        this.updateSign = updateSign;
        this.createBy = createBy;
        this.batch = batch;
    }

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 创建者 */
    private String createBy;

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateType() {
        return updateType;
    }

    public void setUpdateType(String updateType) {
        this.updateType = updateType;
    }

    public String getUpdateFrom() {
        return updateFrom;
    }

    public void setUpdateFrom(String updateFrom) {
        this.updateFrom = updateFrom;
    }

    public String getUpdateSign() {
        return updateSign;
    }

    public void setUpdateSign(String updateSign) {
        this.updateSign = updateSign;
    }

    public Boolean getBatch() {
        return batch;
    }

    public void setBatch(Boolean batch) {
        this.batch = batch;
    }

}
